package cn.shop.merchant.mapper.player;

import cn.shop.merchant.mapper.IBaseMapper;
import cn.shop.merchant.model.player.Player;
import cn.shop.merchant.model.player.PlayerAccount;
import cn.shop.merchant.req.PlayerQueryReq;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

/**
 * @author : 李一涵
 * @date : Created in 2021-11-3 11:24
 * @description : 玩家账号信息mapper
 */
@Mapper
public interface PlayerAccountMapper extends IBaseMapper<PlayerAccount> {

	Page<Player> playerList(Page<Player> pate, @Param("uid") long uid, @Param("req")PlayerQueryReq req);

	Player getPlayer(@Param("uid") long uid, @Param("id") long id);

	long unbind(long id, LocalDateTime time);

	long deleteBind(long partitionId, LocalDateTime time);
}
